package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "code对象", description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "center_code", resultMap = "BaseResultMap")
public class CodeBean extends Model<CodeBean> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "字典名字")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "字典类型")
    private String type;

    @ApiModelProperty(value = "父节点类型")
    private String parentType;

    @ApiModelProperty(value = "字典说明")
    private String remark;

    @ApiModelProperty(value = "代码值")
    @TableField("`key`")
    private String key;

    @ApiModelProperty(value = "排序")
    private Integer seq;

    @ApiModelProperty(value = "是否删除")
    @TableLogic(value = "0", delval = "1")
    private String isDelete;

    @ApiModelProperty(value = "是否可见(0=否,1=是)")
    private String isVisible;

    @ApiModelProperty(value = "是否系统预设,0-否,1-是")
    private String isFixed;

    @ApiModelProperty(value = "左边栏,右边详情展示,0-左边,1-右边")
    private String isLeaf;
}
